<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<head>
    <title>代理商管理系统</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/statics/easyui/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="${ctx}/statics/easyui/themes/icon.css" />
    <link rel="stylesheet" type="text/css" href="${ctx}/statics/easyui/themes/color.css" />
    <link rel="stylesheet" type="text/css" href="${ctx}/statics/easyui/themes/demo.css" />
    <script src="${ctx}/statics/easyui/jquery.min.js" type="text/javascript"></script>
    <script src="${ctx}/statics/easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="${ctx}/statics/easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
</head>
<body class="easyui-layout" >
    <div data-options="region:'center',border:false" style="width:100%;" >
        <table id="logsDg" style="width:100%;"></table>
    </div>

    <script>
        $(
            function ()
            {
                $("#logsDg").datagrid(
                    {
                        url:'${ctx}/do/showOperateLogsPage',
                        singleSelect:true,
                        fitColumns:true,
                        striped:true,
                        fit:true,
                        rownumbers:true,
                        pagination:true, //增加分页工具栏
                        pageNumber:1, //设置初始化页码
                        pageSize:10,  //页大小
                        pageList:[5,10,15], //显示数量选择
                        columns:
                            [
                                [
                                    {field:'id',title:'序号',width:'10%',align:'center'},
                                    {field:'userName',title:'用户名称',width:'10%',align:'center'},
                                    {field:'operateInfo',title:'操作信息',width:'50%',align:'center'},
                                    {field:'operateDatetime',title:'操作时间',width:'28%',align:'center'}
                                ]
                            ]
                    });
            }
        );
    </script>
</body>
</html>
